import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import permission from './modules/permission'
import tagsView from './modules/tagsView'
// vuex 注册
Vue.use(Vuex)
// vuex 实例化
const store = new Vuex.Store({
   // vuex 模块化
   modules: {
      // 三个子模块
      app,
      settings,
      user,
      permission,
      tagsView
   },
   // 快捷访问
   getters
})

export default store
